package com.ubo.uspeed.analyser;


public interface IUSpeedParser {

	public static final String NAME = "([a-zA-Z0-9_]+)";
	public static final String IENTITE = "(class|interface)";
	public static final String IATTRIB = "(attribut)";
	public static final String IMETHOD = "(methode)";
	public static final String IASSOC = "(association)";
	public static final String IPACK = "(package)";
	public static final String IAPPART = "(" + IENTITE + "|" + IMETHOD + ")";
	public static final String SEP = " : ";
	public static final String DEF = " = ";
	public static final String PART = " - ";
	public static final String ESPACE = " ";
	public static final String VISI = "(public |private |protected )?";
	public static final String MOD = "(final |abstract |static )?";
	public static final String TYPE = "(void |int |double |byte |float |char |boolean )";
	public static final String TYPEA = "(simple|implements|extends|agregation|composition)";
	public static final String CARD = "(0|1|\\*)(..(0|1|\\*))?";
	public static final String STARTPAR = " (\\() ";
	public static final String ENDPAR = " (\\))";
	public static final String EATTRIB = VISI + MOD + TYPE + NAME + DEF
			+ IATTRIB + SEP + NAME + PART + IAPPART;
	public static final String EMETHOD = VISI + MOD + TYPE + NAME + DEF
			+ IMETHOD + SEP + NAME;
	public static final String EASSOC = NAME + DEF + IASSOC + STARTPAR + NAME
			+ ESPACE + CARD + ESPACE + TYPEA + ESPACE + CARD + ESPACE + NAME
			+ ENDPAR;
	public static final String EENTITE = VISI + MOD + NAME + DEF + IENTITE
			+ SEP + NAME;
	public static final String EPACK = NAME + DEF + IPACK + "(" + SEP + NAME
			+ ")?";

}
